﻿using CsCQ_Core;

namespace CsCQ.Demo
{
    public class GroupMessager : IGroupMessager
    {
        public int OnGroupMessage(long sendTime, long groupId, long fromId, string anonymous, string message, int fon)
        {
            var sdk = CqSdk.Default;

            if (543231414 == groupId)
            {
               var content =  CqSdk.GetShare("http://192.168.102.231/Daily/today.html", "今日日报", "", "");
                //sdk.SendGroupMessage(543231414, "这是CQ，C#实现测试[CQ:at,qq=113239912] ");
                sdk.SendGroupMessage(543231414, content);
            }

            return 0;
        }
    }
}
